package com.zhiwen.design.factory.easy;

import com.zhiwen.design.factory.Arithmetic;

/**
 * @Auther: wuzhiwen
 * @Date: 2018/12/4 10:07
 * @Description:
 */
public class TestFacory {
    public static void main(String[] args) {
        Arithmetic add = EasyFactory.getWayToArith('+');
        System.out.println("add:"+add.setNumber(1, 2));
        Arithmetic delete = EasyFactory.getWayToArith('-');
        System.out.println("delete:"+delete.setNumber(1, 2));
        Arithmetic mul = EasyFactory.getWayToArith('*');
        System.out.println("mul:"+mul.setNumber(1, 2));
        Arithmetic divide = EasyFactory.getWayToArith('/');
        System.out.println("divide"+divide.setNumber(1, 2));
    }
}
